package lab02.test35;

public class Worker extends Employee{
    private int day;
    private double salary  = 350;//每天的工资

    @Override
    public String toString() {
        return super.toString();
    }

    @Override
    public double computeSalary() {
        return salary*day;
    }

    Worker() {
        super();
    }

    Worker(String name, String no,int day) {
        super(name, no);
        this.day = day;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }
}
